<template>
  <div class="body">
    <div class="nav">
      <div class="title">
        <span class="iconfont icon-jiantou" @click="$router.push('/')"></span>
      </div>
      <div class="title" style="padding-right: 20px">我的订单</div>
      <div class="title"></div>
    </div>
    <!-- 导航栏下面 -->
    <van-tabs v-model="active">
      <van-tab title="全部"></van-tab>
      <van-tab title="待付款"></van-tab>
      <van-tab title="待发货"></van-tab>
      <van-tab title="待收货"></van-tab>
      <van-tab title="待评价"></van-tab>
    </van-tabs>
  </div>
</template>

<script>
// import "@/public/font_3272165_2p46hl771br/iconfont.css";
import Vue from "vue";
import { Tab, Tabs } from "vant";

Vue.use(Tab);
Vue.use(Tabs);
export default {
  data() {
    return {
      active: 0,
    };
  },
  created() {
    this.$store.commit("changeFooter");
  },
  beforeDestroy() {
    this.$store.commit("changeFooter");
  },
};
</script>

<style lang="scss" scoped>
* {
  margin: 0;
  padding: 0;
}
.body {
  height: 100%;
  background-color: rgb(247, 243, 243);
}
.nav {
  display: flex;
  justify-content: space-between;
  background-color: #fff;
  overflow: hidden;
  height: 40px;
  border-bottom: 1px solid rgb(226, 225, 225);
  position: relative;
  .title {
    padding: 9px 5px;
    font-size: 18px;
    text-align: left;
    text-overflow: ellipsis;
    transition: background-color 0.3s;
    font-size: 16px;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #333;
    text-align: center;
    padding-left: 12px;
    .iconfont {
      font-size: 1.024rem;
      color: #8a8a8a;
      flex: 2;
      height: 100%;
      overflow: hidden;
      vertical-align: middle;
    }
  }
}
.header {
  width: 100%;
  overflow: hidden;
  .header-box {
    z-index: 100;
    position: relative;
    display: flex;
    /* width: 100%; */
    text-align: center;
    white-space: nowrap;
    background-color: #fff;
    box-sizing: border-box;
    .active {
      color: #6a6a6a;
      padding-left: 0.21333rem;
      padding-right: 0.21333rem;
      position: relative;
      flex: 1;
      padding: 0.512rem;
      font-size: 14px;
      text-overflow: ellipsis;
      overflow: hidden;
      .underline {
        left: 25%;
        margin-left: -10%;
        width: 70%;
        height: 0.10667rem;
        background-color: #ff4b50 !important;
        transform: scaleX(1);
        display: block;
        position: absolute;
        bottom: 0;
        transition: all 0.15s;
      }
    }
  }
}
</style>
